
let feedsTemplate = {
    amazonEnvelopeTemplate: function(sellerId, messageType, messageList, additionalProperties){
        // const message_list = feedsTemplate.messageListTemplate(operationType, productList);
        const o = {
            Header: {
                DocumentVersion: "1.01",
                MerchantIdentifier: sellerId,
            },
            MessageType: messageType,
            // PurgeAndReplace: purgeAndReplace,
            Message: messageList,
            attr0123: {
                "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",
                "xsi:noNamespaceSchemaLocation": "amzn-envelope.xsd"
            }
        };
        const o2 = Object.assign(o, additionalProperties);
        return o2;
    },

};

module.exports = feedsTemplate;